﻿using System.Collections.ObjectModel;

namespace XDCCManager.Model
{
	public class ServedFilesContext : BaseModel
	{
		public ServedFilesContext()
		{
			packs = new SortedObservableCollection<Packs.Pack>();
			viewPacks = new ActionViewObservableCollection(packs);
			files = new ObservableCollection<Files.File>();
			// if (System.ComponentModel.LicenseManager.UsageMode == System.ComponentModel.LicenseUsageMode.Designtime)
			{
				packs.Add(new Packs.Pack() { Number = 4, Description = "[Maho-Japan] Always Together [oneshot]", Size = 8061456, Gets = 24 });
				packs.Add(new Packs.Pack() { Number = 5, Description = "[Maho-Japan] Bunnies [oneshot]", Size = 2871897, Gets = 9 });
				packs.Add(new Packs.Pack() { Number = 6, Description = "[Maho-Japan] Die [oneshot]", Size = 3085528, Gets = 39 });
				files.Add(new Files.File() { Name = "[Maho-Japan]_Always_Together_[oneshot].rar", Size = 8061456, Path = "/files/" });
				files.Add(new Files.File() { Name = "[Maho-Japan]_Bunnies_[oneshot].rar", Size = 2871897, Path = "/files/" });
				files.Add(new Files.File() { Name = "[Maho-Japan]_Die_[oneshot].rar", Size = 3085528, Path = "/files/" });
			}
		}

		private SortedObservableCollection<Packs.Pack> packs;

		public SortedObservableCollection<Packs.Pack> Packs
		{
			get { return packs; }
		}

		private ActionViewObservableCollection viewPacks;

		public ActionViewObservableCollection ViewPacks
		{
			get { return viewPacks; }
		}

		private ObservableCollection<Files.File> files;

		public ObservableCollection<Files.File> Files
		{
			get { return files; }
		}
	}
}
